package com.atgugu.springcloud.dao;

import com.atgugu.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ZhangXinWang
 * @date 2023/1/6 22:45
 */
@Mapper
public interface OrderDao {
    /**
     * 1.新建订单
     */
    void create(Order order);

    /**
     * 2.修改订单状态,从0改为1
     */
    void update(@Param("id") Long id, @Param("status") Integer status);
}
